import request from '@/utils/request'
// 获取分类列表
export const getCategory = () => {
  return request.get('/category/list')
}

// 商品详情页
export const getDetail = (id) => {
  return request.get('/goods/detail', { params: { goodsId: id } })
}

// 获取商品评价
export const getComments = (goodsId, limit) => {
  return request.get('/comment/listRows', {
    params: {
      goodsId,
      limit
    }
  })
}
